﻿package wcl.json.ExportType {
	import flash.display.MovieClip;
	
	/**
	 * ...
	 * @author ...
	 */
	public class Vertex extends MovieClip {
		
		public var index:uint;
		
		public function Vertex() {
			var indexStr:String;
			indexStr = this.name.slice(1, name.length);
			index = (uint)(Number(indexStr)) - 1;
			trace("New Vetex | Index: " + index);
		}
		
		public function toJsonString():String {
			return "{\"x\":" + String(x) + ",\"y\":" + String(y) + "}"
		}
	}
}